import { request } from "@/utils/service"
import type * as Table from "./types/table"

/** 删 */
export function deleteTableDataApi(id: number) {
  return request({
    url: `order/${id}`,
    method: "delete"
  })
}

/** 查 */
export function getTableDataApi(params: Table.TableRequestData) {
  return request<Table.TableResponseData>({
    url: "order",
    method: "get",
    params
  })
}
